<!DOCTYPE html>
<html lang="zh-cn">
  <head>
    <title><!--{if $user}-->欢迎加入<!--{else}-->新用户注册<!--{/if}--> <!--{$site.title}-->_<!--{$site.seotitle}--></title>
    <meta name="keywords" content="<!--{$site.keywords}-->" />
    <meta name="description" content="<!--{$site.description}-->"/>
    <!--{iCMS:public:ui}-->
    <script src="<!--{$site.urls.ui}-->/iCMS.register-6.0.0.js"></script>
    <script>
    $(function(){
      <!--{if $user}-->
      iCMS.user.OPENID = <!--{$user|json_encode}-->;
      $("[name=gender][value=<!--{$user.gender}-->]").prop("checked",true);
      <!--{/if}-->
      iCMS.user.register();
    })
    </script>
    <style>#iCMS-scrollUp{display: none !important;}</style>
  </head>
  <body class="iCMS-mobile">
    <nav id="header" class="navbar navbar-default" role="navigation">
      <div class="container-fluid">
        <div class="navbar-header">
          <a class="btn btn-default header-back" href="<!--{$forward}-->"><i class="fa fa-arrow-left"></i></a>
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#iCMS-menu-box">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          </button>
          <h3 class="header-title"><!--{if $user}-->欢迎加入<!--{$site.title}--><!--{else}-->新用户注册<!--{/if}--></h1>
        </div>
      </div>
    </nav>
    <div class="container">
      <div class="wrapper login_reg_wrapper" id="iCMS-register-box">
          <div class="logo"><a href="<!--{$site.url}-->"><img src="<!--{$site.urls.ui}-->/img/iCMS.logo-6.0.png" width="180"/></a></div>
          <!--{if $user}-->
            <div class="alert alert-warning" role="alert" style="margin-top: 10px;margin-bottom: 10px;">
              <strong>*</strong>请先补充必要的个人信息，只有补充完这些信息才能真正加入<!--{$site.title}-->哦
            </div>
          <!--{/if}-->
          <div class="form-group">
            <!-- <label for="iCMS-reg-username">电子邮箱</label> -->
            <input type="text" placeholder="电子邮箱" data-container=".username_tip" name="username" id="iCMS-reg-username" class="form-control">
            <span class="help-block username_tip">请填写正确的常用邮箱，以便找回密码。<br />比如：example@example.com</span>
          </div>
          <div class="form-group">
            <!-- <label for="iCMS-reg-nickname">昵称</label> -->
            <input type="text" placeholder="昵称" data-container=".nickname_tip" name="nickname" id="iCMS-reg-nickname" class="form-control">
            <span class="help-block nickname_tip">不能以数字开头，最多20个字符，中文算两个字符。</span>
          </div>
          <div class="radio">
            <label class="radio-inline" for="gender-girl">
              <input type="radio" value="girl" id="gender-girl" name="gender" checked="checked"><span>女</span>
            </label>
            <label class="radio-inline" for="gender-boy">
              <input type="radio" value="boy" id="gender-boy" name="gender"><span>男</span>
            </label>
          </div>
          <div class="form-group">
            <!-- <label for="iCMS-reg-password">密 码</label> -->
            <input type="password" placeholder="请输入您的密码" data-container=".password_tip" name="password" id="iCMS-reg-password" class="form-control">
            <span class="help-block password_tip">6-20个字母、数字或者符号</span>
          </div>
          <div class="form-group">
            <!-- <label for="iCMS-reg-rstpassword">确认密码</label> -->
            <input type="password" placeholder="请在一次输入您的密码" data-container=".rstpassword_tip" name="rstpassword" id="iCMS-reg-rstpassword" class="form-control">
            <span class="help-block rstpassword_tip">这里要重复输入一下你的密码</span>
          </div>
          <!--{if $iCMS.CONFIG.user.register.seccode }-->
          <div class="form-group">
            <!-- <label for="iCMS-reg-seccode">验证码</label> -->
            <input type="text" placeholder="验证码" maxlength="4" data-container=".seccode_tip" name="seccode" id="iCMS-reg-seccode" class="iCMS_seccode form-control">
            <img src="<!--{iCMS:router url='/api/public/seccode'}-->" alt="验证码" class="iCMS_seccode_img r3"/>
            <a href="javascript:;" class="iCMS_seccode_text" style="float: none">换一张</a>
            <span class="help-block seccode_tip">请输入图片中的字符!</span>
          </div>
          <!--{/if}-->
          <div class="checkbox">
            <label for="reg_agreement">
              <input type="checkbox" name="agreement" id="reg_agreement" checked="checked"><span>我已看过并同意《<a href="<!--{iCMS:router url='/api/public/agreement'}-->" target="_blank"><!--{$site.title}-->网络服务使用协议</a>》</span>
            </label>
          </div>
          <button type="submit" class="btn btn-primary btn-lg btn-block iCMS_register_btn">注 册</button>
          <div class="clearfix mt10 mb10">
            <a class="btn btn-success" href="<!--{iCMS:router url='/api/user/login' query="$query"}-->" style="margin-top: 8px;"><i class="fa fa-user"></i> 已经有帐号？请直接登录 »</a>
          </div>
          <!--{if !$user}-->
          <hr />
          <div class="open-btn">
            <h3 class="gray mb10">您也可以用以下方式登录：</h3>
            <!--{if $iCMS.CONFIG.open.QQ.enable }-->
            <a class="btn btn-primary btn-sm" href="<!--{iCMS:router url='/api/user/login/qq'}-->"><i class="fa fa-qq"></i> QQ 登录</a>
            <!--{/if}-->
            <!--{if $iCMS.CONFIG.open.WB.enable }-->
            <a class="btn btn-danger btn-sm" href="<!--{iCMS:router url='/api/user/login/wb'}-->"><i class="fa fa-weibo"></i> 微博登录</a>
            <!--{/if}-->
            <!--{if $iCMS.CONFIG.open.WX.enable }-->
            <a class="btn btn-success btn-sm" href="<!--{iCMS:router url='/api/user/login/wx'}-->"><i class="fa fa-weixin"></i> 微信登录</a>
            <!--{/if}-->
          </div>
          <!--{/if}-->
          <div class="clearfix mb20"></div>
      </div>
    </div>
    <!--{include file="{iTPL}/footer.htm"}-->
  </body>
</html>
